const userApi = {
    getBasicInfo: {
        name: '获取用户基本信息',
        url: '/user/basic/info',
        method: 'GET',
        successMessage: false,
        userPower: true,
        dataParam: false
    },
    updateBasicInfo: {
        name: '更新用户基本信息',
        url: '/user/update/basic/info',
        method: 'POST',
        successMessage: true,
        userPower: true,
        dataParam: true
    },
    updateHaedPic: {
        name: '更新用户头像',
        url: '/user/upload/head-pic',
        method: 'POST',
        successMessage: true,
        userPower: true,
        dataParam: false
    },
    login: {
        name: '登录',
        url: '/user/login/email/password',
        method: 'POST',
        successMessage: true,
        userPower: false,
        dataParam: true
    },
    mailRegister: {
        name: '邮箱注册账号',
        url: '/user/register/email',
        method: 'POST',
        successMessage: true,
        userPower: false,
        dataParam: true
    }
}

export default userApi 